iBATIS.NET Class Library DataMapper V1.6.1, DataAccess V1.9.1

ISqlMapper.QueryForList Method (String, Object)

Executes a Sql SELECT statement that returns data to populate a number of result objects.

The parameter object is generally used to supply the input data for the WHERE clause parameter(s) of the SELECT statement.
[Visual Basic]
Function QueryForList( _
   ByVal String As String, _
   ByVal Object As Object _
) As IList{``0}
[C#]
IList<T> <T>QueryForList(
   String statementName,
   Object parameterObject
);

Parameters

statementName
The name of the sql statement to execute.
parameterObject
The object used to set the parameters in the SQL.

Return Value

A List of result objects.

See Also

ISqlMapper Interface | IBatisNet.DataMapper Namespace | ISqlMapper.QueryForList Overload List